package com.xishu.entity.foodPandaOrder;

import com.xishu.annotation.dao.FieldMapping;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Transient;
import java.io.Serializable;

/**
 * 配送信息
 */

public class Delivery implements Serializable {

    private static final long serialVersionUID = -6615041751707743768L;
    @Transient
    @ApiModelProperty(value = "详细地址")
    @FieldMapping(desField = "addressJosn", serialize = true)
    private Address address;

    @ApiModelProperty(value = "详细地址")
    @FieldMapping(desField = "address",serialize = false,genericType = "com.xishu.entity.foodPandaOrder.Address")
    private String addressJosn;

    @ApiModelProperty(value = "预计送达时间")
    private String expectedDeliveryTime;

    @ApiModelProperty(value = "是否是准时达订单")
    private boolean expressDelivery;

    @ApiModelProperty(value = "客户或骑手取餐时间，如果是商家配送订单，则为null")
    private String riderPickupTime;


    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public String getExpectedDeliveryTime() {
        return expectedDeliveryTime;
    }

    public void setExpectedDeliveryTime(String expectedDeliveryTime) {
        this.expectedDeliveryTime = expectedDeliveryTime;
    }

    public boolean isExpressDelivery() {
        return expressDelivery;
    }

    public void setExpressDelivery(boolean expressDelivery) {
        this.expressDelivery = expressDelivery;
    }

    public String getRiderPickupTime() {
        return riderPickupTime;
    }

    public void setRiderPickupTime(String riderPickupTime) {
        this.riderPickupTime = riderPickupTime;
    }

    public String getAddressJosn() {
        return addressJosn;
    }

    public void setAddressJosn(String addressJosn) {
        this.addressJosn = addressJosn;
    }
}
